import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Graphics;

public class Help extends Canvas{
	private Display display;
	private MainMenu mainmenu;
	public Help(MainMenu mainmenu, Display display){
		this.display = display;
		this.mainmenu = mainmenu;
		setFullScreenMode(true);
	}
	public void paint(Graphics g){
		g.setColor(255, 255, 255);
		g.fillRect(0, 0, 128, 160);
		g.setColor(0, 0, 0);
		g.drawString("Huong dan", 35, 10, 0);
		g.drawString("Ban se nhap vai mot", 10, 25, 0);
		g.drawString("nguoi ngu dan va ra bien", 2, 40, 0);
		g.drawString("cau ca. Sau khi cau duoc", 2, 55, 0);
		g.drawString("ca ban se ban ca de mua", 2, 70, 0);
		g.drawString("nhung dung cu tot hon. ", 2, 85, 0);
		g.drawString("Khi cau duoc ca cang  ", 2, 100, 0);
		g.drawString("hiem thi diem se cang cao.", 2, 115, 0);
		g.drawString("Khi dat du so diem thi ban", 2, 130, 0);
		g.drawString("se tang level cua minh.", 2, 145, 0);
	}
	protected void keyPressed(int code){
		if((code == 53)||(code == -5))
			display.setCurrent(mainmenu);
	}
}